<template>
  <div>
    <div class="outer">
      <p>list</p>
      <button @click="getThis">查看this</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "List",
  data() {
    return {
      list: [1, 1, 2],
    };
  },
  methods: {
    getThis() {
      // $emit就可以获事件
      this.$emit("fn", this.list);
    },
  },
};
</script>

<style scoped>
.outer {
  width: 200px;
  background-color: red;
}
</style>